package com.myway.dto;

import com.google.common.collect.Lists;
import com.myway.pojo.SysAclModule;
import com.myway.pojo.SysDept;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.beans.BeanUtils;

import java.util.List;

/**
 * Created by yufei on 2017/12/15.
 */
@Setter
@Getter
@ToString
public class AclModuleLevelDto extends SysAclModule {
    private List<AclModuleLevelDto> aclModuleList = Lists.newArrayList();
    public static AclModuleLevelDto adapt(SysAclModule sysAclModule){
        AclModuleLevelDto dto = new AclModuleLevelDto();
        BeanUtils.copyProperties(sysAclModule,dto);
        return dto;
    }
}
